import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home/home'
import HelloWorld from '@/components/HelloWorld'
import todoList from '@/pages/todoList/todoList'
import Finder from '@/pages/d-finder/finder'
import Me from '@/pages/me/me'

Vue.use(Router)

const routers = [
  {
    path: '/',
    name: 'home',
    component: Home
  }, {
    path: '/todoList',
    name: 'todoList',
    component: todoList
  }, {
    path: '/HelloWorld',
    name: 'HelloWorld',
    component: HelloWorld
  }, {
    path: '/finder',
    name: 'finder',
    component: Finder
  }, {
    path: '/me',
    name: 'me',
    component: Me
  }
];

export default new Router({
  mode: 'history',
  routes: routers
})
